<!--
 * @Autor        : LiJia
 * @Date         : 2021-12-19 02:36:50
 * @LastEditTime : 2021-12-19 05:31:47
 * @FilePath     : \src\views\Home.vue
 * @Description  : $1
-->
<template>
  <div class="home">
    <img alt="Vue logo" src="~@/assets/logo.png" />{{$request}}
    <HelloWorld msg="Welcome to Your Vue.js + TypeScript App" />
  </div>
</template>

<script lang="ts">
import { Options, Vue } from 'vue-class-component'
import apis from '@/api'
import HelloWorld from '@/components/hello-world/hello-world.vue' // @ is an alias to /src

@Options({
  components: {
    HelloWorld
  }
})
export default class Home extends Vue {
  created() {
    const request = {
      ...apis.TEST1,
      params: {
        name: 'aaa'
      }
    }
    this.$request(request).then((res: any) => {
      console.log(res)
    }).catch((err: any) => {
      console.log(err)
    })
    debugger
  }
}
</script>
